package com.jia.thumps.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (BlogComments)实体类
 *
 * @author makejava
 * @since 2024-10-09 00:11:07
 */
@Setter
@Getter
public class BlogComments implements Serializable {

    private static final long serialVersionUID = -44520464359195737L;
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 探店id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long blogId;
    /**
     * 关联的1级评论id，如果是一级评论，则值为0
     */
    private Long parentId;
    /**
     * 回复的评论id
     */
    private Long answerId;
    /**
     * 回复的内容
     */
    private String content;
    /**
     * 点赞数
     */
    private Integer liked;
    /**
     * 状态，0：正常，1：被举报，2：禁止查看
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

}

